<?php

/*
|--------------------------------------------------------------------------
| Routes File
|--------------------------------------------------------------------------
|
| Here is where you will register all of the routes in an application.
| It's a breeze. Simply tell Laravel the URIs it should respond to
| and give it the controller to call when that URI is requested.
|
*/

Route::get('/', function () {
    return view('welcome');
});

/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| This route group applies the "web" middleware group to every route
| it contains. The "web" middleware group is defined in your HTTP
| kernel and includes session state, CSRF protection, and more.
|
*/
// Route::post('/projectLogin','admin/LoginController@projectLogin');

// Route::group(['middleware' => ['web']], function () {
//     //
// });
Route::Group(['prefix' => 'project/'], function() {
	// 项目列表
	Route::post('{projectList}', 'Project\ProjectController@common');
	// 项目详情
	Route::post('{details}', 'Project\ProjectController@common');

});

Route::Group(['prefix' => 'admin/project/'], function() {
	// 项目列表
	Route::post('{projectList}', 'Admin\Group\ProjectController@common');
	// 项目详情
	Route::post('{details}', 'Admin\Group\ProjectController@common');
	// 项目提交审核
	Route::post('{addProject}', 'Admin\Group\ProjectController@common');

});

Route::Group(['prefix' => 'pay/'], function() {
	// 下单接口
	Route::post('{jsapi}', 'PayController@common');
	// 支付回调
	Route::post('{notify}', 'PayController@common');

});


Route::post('/login','LoginController@login');

Route::controller('adminLogin','admin\LoginController');

Route::get('/login/test','LoginController@test');
Route::get('/login/test2','LoginController@test2');

